import React, { Component } from 'react'
import observer from '../util/observer'
export default class Left extends Component {
  send=()=>{
    observer.dispatch('我向大家发送信息了...i like you')
  }
  render() {
    return (
      <div style={{flexGrow:1,backgroundColor:'orange',height:'100vh'}}>
        <h1>Left组件</h1>
        <button onClick={this.send}>发送数据到Right组件</button>
      </div>
    )
  }
}
